
<%= simple_form_for([@order,@payment]) do |f| %>
  <%= f.error_notification %>
  <%= f.error_notification message: f.object.errors[:base].to_sentence if f.object.errors[:base].present? %>


<div class="row">
	<div class="col-md-6">
		<%= f.input :amount ,label: '金额' %>
	</div>
	<div class="col-md-6">
		<div class="form-group date optional form-group-valid">
			<label class="form-control-label date optional" for="payment_date">付款日期</label>
			<div class="input-group">
				<input name="payment[date]" class="form-control date-picker" id="payment_date" type="text" data-date-format="yyyy-mm-dd">
				<span class="input-group-addon"> <i class="fa fa-calendar"></i> </span>
			</div>
		</div>
	</div>
</div>

<div class="row">
	<div class="col-md-6">
		<%= f.input :tx_code,  label: '客户付款流水单号', remote: true %>
	</div>	
	<div class="col-md-6">
		<%= f.input :comment, as: :text , label: '备注'%>
	</div>	
</div>
<div class="row">
	<div class="col-md-12">
		
	</div>		
</div>
<%= f.input :order_id, :input_html => { :value => @order.id}, as: :hidden  %>

<%= f.button :submit, '提交', class: "btn-blue btn-xs" %>
  
<% end %>
